<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Raster.Raster Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_raster_1_1_raster.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_vect_sharp_1_1_raster_1_1_raster-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Raster.Raster Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Contains methods to render a page to a PNG image.   
 <a href="class_vect_sharp_1_1_raster_1_1_raster.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6a297fbcb54d1f3a85150bbe5c5bf70e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_raster_1_1_raster.html#a6a297fbcb54d1f3a85150bbe5c5bf70e">SaveAsPNG</a> (this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> page, string fileName, double scale=1)</td></tr>
<tr class="memdesc:a6a297fbcb54d1f3a85150bbe5c5bf70e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the page to a PNG file.   <a href="class_vect_sharp_1_1_raster_1_1_raster.html#a6a297fbcb54d1f3a85150bbe5c5bf70e">More...</a><br /></td></tr>
<tr class="separator:a6a297fbcb54d1f3a85150bbe5c5bf70e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a542960c7ec48c41dd308bf2f67b262c5"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_raster_1_1_raster.html#a542960c7ec48c41dd308bf2f67b262c5">SaveAsPNG</a> (this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> page, Stream stream, double scale=1)</td></tr>
<tr class="memdesc:a542960c7ec48c41dd308bf2f67b262c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the page to a PNG stream.   <a href="class_vect_sharp_1_1_raster_1_1_raster.html#a542960c7ec48c41dd308bf2f67b262c5">More...</a><br /></td></tr>
<tr class="separator:a542960c7ec48c41dd308bf2f67b262c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20b17b29133cf8280d009a56068ae595"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_raster_image.html">RasterImage</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_raster_1_1_raster.html#a20b17b29133cf8280d009a56068ae595">Rasterise</a> (this <a class="el" href="class_vect_sharp_1_1_graphics.html">Graphics</a> graphics, <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> region, double scale, bool interpolate)</td></tr>
<tr class="memdesc:a20b17b29133cf8280d009a56068ae595"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rasterise a region of a <a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a> object.   <a href="class_vect_sharp_1_1_raster_1_1_raster.html#a20b17b29133cf8280d009a56068ae595">More...</a><br /></td></tr>
<tr class="separator:a20b17b29133cf8280d009a56068ae595"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af509e8f22ce5a5e31adcc8b20fe2f44f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_disposable_int_ptr.html">DisposableIntPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_raster_1_1_raster.html#af509e8f22ce5a5e31adcc8b20fe2f44f">SaveAsRawBytes</a> (this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> pag, out int width, out int height, out int totalSize, double scale=1)</td></tr>
<tr class="memdesc:af509e8f22ce5a5e31adcc8b20fe2f44f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the page to raw pixel data, in 32bpp RGBA format.   <a href="class_vect_sharp_1_1_raster_1_1_raster.html#af509e8f22ce5a5e31adcc8b20fe2f44f">More...</a><br /></td></tr>
<tr class="separator:af509e8f22ce5a5e31adcc8b20fe2f44f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace5d7c8a505054ef580cf6f75af571c0"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_raster_1_1_raster.html#ace5d7c8a505054ef580cf6f75af571c0">SaveAsAnimatedPNG</a> (this <a class="el" href="class_vect_sharp_1_1_animation.html">Animation</a> animation, Stream imageStream, double scale=1, double frameRate=60, double durationScaling=1, <a class="el" href="class_vect_sharp_1_1_animated_p_n_g.html#ac87e8fb45a427615d2645ba751e5d09a">AnimatedPNG.InterframeCompression</a> interframeCompression=AnimatedPNG.InterframeCompression.First)</td></tr>
<tr class="memdesc:ace5d7c8a505054ef580cf6f75af571c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves the animation to a stream in animated PNG format.   <a href="class_vect_sharp_1_1_raster_1_1_raster.html#ace5d7c8a505054ef580cf6f75af571c0">More...</a><br /></td></tr>
<tr class="separator:ace5d7c8a505054ef580cf6f75af571c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad56d4fd96b84ba9441dc56bbbb46560c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_raster_1_1_raster.html#ad56d4fd96b84ba9441dc56bbbb46560c">SaveAsAnimatedPNG</a> (this <a class="el" href="class_vect_sharp_1_1_animation.html">Animation</a> animation, string fileName, double scale=1, double frameRate=60, double durationScaling=1, <a class="el" href="class_vect_sharp_1_1_animated_p_n_g.html#ac87e8fb45a427615d2645ba751e5d09a">AnimatedPNG.InterframeCompression</a> interframeCompression=AnimatedPNG.InterframeCompression.First)</td></tr>
<tr class="memdesc:ad56d4fd96b84ba9441dc56bbbb46560c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves the animation to an animated PNG file.   <a href="class_vect_sharp_1_1_raster_1_1_raster.html#ad56d4fd96b84ba9441dc56bbbb46560c">More...</a><br /></td></tr>
<tr class="separator:ad56d4fd96b84ba9441dc56bbbb46560c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af29a3aa7922286cd5fd408336d4da0fd"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_raster_1_1_raster.html#af29a3aa7922286cd5fd408336d4da0fd">SaveAsJPEG</a> (this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> page, string fileName, double scale=1, int quality=90)</td></tr>
<tr class="memdesc:af29a3aa7922286cd5fd408336d4da0fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render the page to a JPEG file.   <a href="class_vect_sharp_1_1_raster_1_1_raster.html#af29a3aa7922286cd5fd408336d4da0fd">More...</a><br /></td></tr>
<tr class="separator:af29a3aa7922286cd5fd408336d4da0fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Contains methods to render a page to a PNG image.  </p>

<p class="definition">Definition at line <a class="el" href="_raster_8cs_source.html#l00030">30</a> of file <a class="el" href="_raster_8cs_source.html">Raster.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a20b17b29133cf8280d009a56068ae595" name="a20b17b29133cf8280d009a56068ae595"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20b17b29133cf8280d009a56068ae595">&#9670;&#160;</a></span>Rasterise()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_raster_image.html">RasterImage</a> VectSharp.Raster.Raster.Rasterise </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_graphics.html">Graphics</a>&#160;</td>
          <td class="paramname"><em>graphics</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>region</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>interpolate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Rasterise a region of a <a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a> object.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">graphics</td><td>The <a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a> object that will be rasterised.</td></tr>
    <tr><td class="paramname">region</td><td>The region of the <em>graphics</em>  that will be rasterised.</td></tr>
    <tr><td class="paramname">scale</td><td>The scale at which the image will be rendered.</td></tr>
    <tr><td class="paramname">interpolate</td><td>Whether the resulting image should be interpolated or not when it is drawn on another <a class="el" href="class_vect_sharp_1_1_graphics.html" title="Represents an abstract drawing surface.">Graphics</a> surface.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_raster_image.html" title="Represents a raster image, created from raw pixel data. Consider using the derived classes included i...">RasterImage</a> containing the rasterised graphics.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_raster_8cs_source.html#l00091">91</a> of file <a class="el" href="_raster_8cs_source.html">Raster.cs</a>.</p>

</div>
</div>
<a id="ace5d7c8a505054ef580cf6f75af571c0" name="ace5d7c8a505054ef580cf6f75af571c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace5d7c8a505054ef580cf6f75af571c0">&#9670;&#160;</a></span>SaveAsAnimatedPNG() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void VectSharp.Raster.Raster.SaveAsAnimatedPNG </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_animation.html">Animation</a>&#160;</td>
          <td class="paramname"><em>animation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Stream&#160;</td>
          <td class="paramname"><em>imageStream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>frameRate</em> = <code>60</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>durationScaling</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_animated_p_n_g.html#ac87e8fb45a427615d2645ba751e5d09a">AnimatedPNG.InterframeCompression</a>&#160;</td>
          <td class="paramname"><em>interframeCompression</em> = <code>AnimatedPNG.InterframeCompression.First</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Saves the animation to a stream in animated PNG format.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">animation</td><td>The animation to export.</td></tr>
    <tr><td class="paramname">imageStream</td><td>The stream on which the animated PNG will be written.</td></tr>
    <tr><td class="paramname">scale</td><td>The scale at which the animation will be rendered.</td></tr>
    <tr><td class="paramname">frameRate</td><td>The target frame rate of the animation, in frames-per-second (fps). This is capped by the animated PNG specification at 90 fps.</td></tr>
    <tr><td class="paramname">durationScaling</td><td>A scaling factor that will be applied to all durations in the animation. Values greater than 1 slow down the animation, values smaller than 1 accelerate it. Note that this does not affect the frame rate of the animation.</td></tr>
    <tr><td class="paramname">interframeCompression</td><td>The kind of compression that will be used to reduce file size. Note that if the animation has a transparent background, no compression can be performed, and the value of this parameter is ignored.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_raster_8cs_source.html#l00184">184</a> of file <a class="el" href="_raster_8cs_source.html">Raster.cs</a>.</p>

</div>
</div>
<a id="ad56d4fd96b84ba9441dc56bbbb46560c" name="ad56d4fd96b84ba9441dc56bbbb46560c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad56d4fd96b84ba9441dc56bbbb46560c">&#9670;&#160;</a></span>SaveAsAnimatedPNG() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void VectSharp.Raster.Raster.SaveAsAnimatedPNG </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_animation.html">Animation</a>&#160;</td>
          <td class="paramname"><em>animation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>frameRate</em> = <code>60</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>durationScaling</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_animated_p_n_g.html#ac87e8fb45a427615d2645ba751e5d09a">AnimatedPNG.InterframeCompression</a>&#160;</td>
          <td class="paramname"><em>interframeCompression</em> = <code>AnimatedPNG.InterframeCompression.First</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Saves the animation to an animated PNG file.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">animation</td><td>The animation to export.</td></tr>
    <tr><td class="paramname">fileName</td><td>The output file to create.</td></tr>
    <tr><td class="paramname">scale</td><td>The scale at which the animation will be rendered.</td></tr>
    <tr><td class="paramname">frameRate</td><td>The target frame rate of the animation, in frames-per-second (fps). This is capped by the animated PNG specification at 90 fps.</td></tr>
    <tr><td class="paramname">durationScaling</td><td>A scaling factor that will be applied to all durations in the animation. Values greater than 1 slow down the animation, values smaller than 1 accelerate it. Note that this does not affect the frame rate of the animation.</td></tr>
    <tr><td class="paramname">interframeCompression</td><td>The kind of compression that will be used to reduce file size. Note that if the animation has a transparent background, no compression can be performed, and the value of this parameter is ignored.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_raster_8cs_source.html#l00267">267</a> of file <a class="el" href="_raster_8cs_source.html">Raster.cs</a>.</p>

</div>
</div>
<a id="af29a3aa7922286cd5fd408336d4da0fd" name="af29a3aa7922286cd5fd408336d4da0fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af29a3aa7922286cd5fd408336d4da0fd">&#9670;&#160;</a></span>SaveAsJPEG()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void VectSharp.Raster.Raster.SaveAsJPEG </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td>
          <td class="paramname"><em>page</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>quality</em> = <code>90</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render the page to a JPEG file.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">page</td><td>The <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to render.</td></tr>
    <tr><td class="paramname">fileName</td><td>The full path to the file to save. If it exists, it will be overwritten.</td></tr>
    <tr><td class="paramname">scale</td><td>The scale to be used when rasterising the page. This will determine the width and height of the image file.</td></tr>
    <tr><td class="paramname">quality</td><td>The quality of the JPEG output (ranging from 0 to 100).</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_raster_8cs_source.html#l00283">283</a> of file <a class="el" href="_raster_8cs_source.html">Raster.cs</a>.</p>

</div>
</div>
<a id="a542960c7ec48c41dd308bf2f67b262c5" name="a542960c7ec48c41dd308bf2f67b262c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a542960c7ec48c41dd308bf2f67b262c5">&#9670;&#160;</a></span>SaveAsPNG() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void VectSharp.Raster.Raster.SaveAsPNG </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td>
          <td class="paramname"><em>page</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Stream&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render the page to a PNG stream.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">page</td><td>The <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to render.</td></tr>
    <tr><td class="paramname">stream</td><td>The stream to which the PNG data will be written.</td></tr>
    <tr><td class="paramname">scale</td><td>The scale to be used when rasterising the page. This will determine the width and height of the image file.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_raster_8cs_source.html#l00064">64</a> of file <a class="el" href="_raster_8cs_source.html">Raster.cs</a>.</p>

</div>
</div>
<a id="a6a297fbcb54d1f3a85150bbe5c5bf70e" name="a6a297fbcb54d1f3a85150bbe5c5bf70e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a297fbcb54d1f3a85150bbe5c5bf70e">&#9670;&#160;</a></span>SaveAsPNG() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void VectSharp.Raster.Raster.SaveAsPNG </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td>
          <td class="paramname"><em>page</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render the page to a PNG file.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">page</td><td>The <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to render.</td></tr>
    <tr><td class="paramname">fileName</td><td>The full path to the file to save. If it exists, it will be overwritten.</td></tr>
    <tr><td class="paramname">scale</td><td>The scale to be used when rasterising the page. This will determine the width and height of the image file.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_raster_8cs_source.html#l00039">39</a> of file <a class="el" href="_raster_8cs_source.html">Raster.cs</a>.</p>

</div>
</div>
<a id="af509e8f22ce5a5e31adcc8b20fe2f44f" name="af509e8f22ce5a5e31adcc8b20fe2f44f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af509e8f22ce5a5e31adcc8b20fe2f44f">&#9670;&#160;</a></span>SaveAsRawBytes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_disposable_int_ptr.html">DisposableIntPtr</a> VectSharp.Raster.Raster.SaveAsRawBytes </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td>
          <td class="paramname"><em>pag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out int&#160;</td>
          <td class="paramname"><em>totalSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render the page to raw pixel data, in 32bpp RGBA format.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pag</td><td>The <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to render.</td></tr>
    <tr><td class="paramname">scale</td><td>The scale to be used when rasterising the page. This will determine the width and height of the image.</td></tr>
    <tr><td class="paramname">width</td><td>The width of the rendered image.</td></tr>
    <tr><td class="paramname">height</td><td>The height of the rendered image.</td></tr>
    <tr><td class="paramname">totalSize</td><td>The size in bytes of the raw pixel data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_disposable_int_ptr.html" title="An IDisposable wrapper around an IntPtr that frees the allocated memory when it is disposed.">DisposableIntPtr</a> containing a pointer to the raw pixel data, stored in unmanaged memory. Dispose this object to release the unmanaged memory.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_raster_8cs_source.html#l00143">143</a> of file <a class="el" href="_raster_8cs_source.html">Raster.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp.Raster/<a class="el" href="_raster_8cs_source.html">Raster.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="namespace_vect_sharp_1_1_raster.html">Raster</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_raster_1_1_raster.html">Raster</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
